Control method and apparatus, electronic device, and storage medium

ABSTRACT

A control method includes: a preview image is displayed; a user input acting on the preview image is received, in which the user input includes an adjustment of a display position of a target object in the preview image from a first position to a second position; and in response to the user input, a shooting angle of the camera is adjusted according to the adjustment of the display position.

CROSS-REFERENCE TO RELATED APPLICATION

This application is based upon and claims priority to Chinese PatentApplication No. 202010763491.0 filed on Jul. 31, 2020, the content ofwhich is hereby incorporated by reference in its entirety for allpurposes.

TECHNICAL FIELD

The present disclosure relates to the field of electronic technology,and particularly to, a control method and apparatus, an electronicdevice, and a storage medium.

BACKGROUND

In the related art, a camera may be mounted on an electronic device toprovide a corresponding photographing function for the electronicdevice. However, during shooting, if a target object to be shot by thedevice is at a position expected by a user, the user needs to adjust theposition of the target object on a picture to be shot by constantlyadjusting the position of the electronic device, and the operation iscumbersome and not intuitive, which affects the experience of using theelectronic device by the user.

SUMMARY

The present disclosure provides a control method, apparatus, and anon-transitory computer-readable storage medium.

According to a first aspect of the present disclosure, a control methodis provided. The method may be applied by an electronic device having acamera. The method may include: displaying a preview image captured by acamera of an electronic device; receiving a user input acting on thepreview image, in which the user input includes an adjustment of adisplay position of a target object in the preview image from a firstposition to a second position; and in response to the user input,adjusting a shooting angle of the camera according to the adjustment ofthe display position.

According to a second aspect of the present disclosure, a controlapparatus is provided, the apparatus including: a display screen; aprocessor; and a memory for storing instructions executable by theprocessor, herein the display screen is configured to display a previewimage captured by a camera of an electronic device; and the processor isconfigured to: receive a user input acting on the preview image, inwhich the user input includes an adjustment of a display position of atarget object in the preview image from a first position to a secondposition; and in response to the user input, adjust a shooting angle ofthe camera according to the adjustment of the display position.

According to a third aspect of the present disclosure, a non-transitorycomputer-readable storage medium is provided having stored thereoninstruction that, when executed by a processor of an electronic device,cause the electronic device to perform operations of a control methods,the method including: displaying a preview image captured by a camera ofthe electronic device; receiving a user input acting on the previewimage, in which the user input includes an adjustment of a displayposition of a target object in the preview image from a first positionto a second position; and in response to the user input, adjusting ashooting angle of the camera according to the adjustment of the displayposition.

It is to be understood that the foregoing general description and thefollowing detailed description are exemplary and explanatory only andare not restrictive of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of this specification, illustrate examples consistent with thepresent disclosure and, together with the description, serve to explainthe principles of the disclosure.

FIG. 1 is a flowchart of a control method according to an example of thepresent disclosure.

FIG. 2 is a first schematic diagram of a display interface according toan example of the present disclosure.

FIG. 3 is a second schematic diagram of a display interface according toan example of the present disclosure.

FIG. 4 is a third schematic diagram of a display interface according toan example of the present disclosure.

FIG. 5 is a fourth schematic diagram of a display interface according toan example of the present disclosure.

FIG. 6 is a fifth schematic diagram of a display interface according toan example of the present disclosure.

FIG. 7 is a sixth schematic diagram of a display interface according toan example of the present disclosure.

FIG. 8 is a block diagram of a control apparatus according to an exampleof the present disclosure.

FIG. 9 is a hardware block diagram of a control apparatus according toan example of the present disclosure.

DETAILED DESCRIPTION

Reference will now be described in detail to examples, which areillustrated in the accompanying drawings. The following descriptionrefers to the accompanying drawings in which the same numbers indifferent drawings represent the same or similar elements unlessotherwise represented. The examples described following do not representall examples consistent with the present disclosure. Instead, they aremerely examples of devices and methods consistent with aspects of thedisclosure as detailed in the appended claims.

Terms used in the present disclosure are merely for describing specificexamples and are not intended to limit the present disclosure. Thesingular forms “one”, “the”, and “this” used in the present disclosureand the appended claims are also intended to include a multiple form,unless other meanings are clearly represented in the context. It shouldalso be understood that the term “and/or” used in the present disclosurerefers to any or all of possible combinations including one or moreassociated listed items.

Reference throughout this specification to “one embodiment,” “anembodiment,” “an example,” “some embodiments,” “some examples,” orsimilar language means that a particular feature, structure, orcharacteristic described is included in at least one embodiment orexample. Features, structures, elements, or characteristics described inconnection with one or some embodiments are also applicable to otherembodiments, unless expressly specified otherwise.

It should be understood that although terms “first”, “second”, “third”,and the like are used in the present disclosure to describe variousinformation, the information is not limited to the terms. These termsare merely used to differentiate information of a same type. Forexample, without departing from the scope of the present disclosure,first information is also referred to as second information, andsimilarly the second information is also referred to as the firstinformation. Depending on the context, for example, the term “if” usedherein may be explained as “when” or “while”, or “in response to . . . ,it is determined that”.

The terms “module,” “sub-module,” “circuit,” “sub-circuit,” “circuitry,”“sub-circuitry,” “unit,” or “sub-unit” may include memory (shared,dedicated, or group) that stores code or instructions that can beexecuted by one or more processors. A module may include one or morecircuits with or without stored code or instructions. The module orcircuit may include one or more components that are directly orindirectly connected. These components may or may not be physicallyattached to, or located adjacent to, one another.

A unit or module may be implemented purely by software, purely byhardware, or by a combination of hardware and software. In a puresoftware implementation, for example, the unit or module may includefunctionally related code blocks or software components, that aredirectly or indirectly linked together, so as to perform a particularfunction.

FIG. 1 is a flowchart of a control method according to an example of thepresent disclosure. As shown in FIG. 1, the method may be applied to anelectronic device having a camera, and includes the followingoperations.

In operation 101, a preview image is displayed.

In operation 102, a user input acting on the preview image is received.The user input is used for adjustment of a display position of a targetobject in the preview image from a first position to a second position.

In operation 103, in response to the user input, a shooting angle of thecamera is adjusted according to the adjustment of the display position.

Herein, the electronic device includes a mobile terminal and a fixedterminal. The mobile terminal includes a mobile phone, a notebookcomputer, a tablet computer, a wearable electronic device and the like,and the fixed terminal includes a personal computer, a television andthe like. In the examples of the present disclosure, the electronicdevice has a camera. During the use of the electronic device, the cameramay be started based on a camera application installed on the electronicdevice. After the camera is started successfully, the preview image maybe displayed on a display screen of the electronic device.

In some examples, the preview image may include at least one shotobject, and FIG. 2 is a first schematic diagram of a display interfaceaccording to an example of the present disclosure. As shown in FIG. 2,the preview image is displayed on the display interface on the displayscreen of the electronic device, and the preview image includes a firstshot object 201 and a second shot object 202. During the implementationof the examples, the user input may be received based on any shot objectincluded in the preview image. For example, the user input may bereceived based on the first shot object or the second shot object.

Herein, the first position may be a current position of the targetobject in the preview image, and the second position may be a targetposition where the target object is to be moved.

In the implementation of the example of the present disclosure, the usermay observe the position of each shot object based on the preview imagedisplayed on the display screen of the electronic device. If theposition of each shot object is not the one desired by the user, theuser input may be received based on the display screen, and the shootingangle of the camera may be adjusted based on the user input to adjustthe display position of each shot object. In this way, the position ofeach shot object in the preview image can be observed in real timeduring the adjustment. When the shot object is not in the desiredposition, the adjustment can be performed in real time. As a result, theoperations are simple and intuitive, thus the user's experience of usingthe electronic device can be improved.

In some examples, the method may further include the followingoperation.

A shot object of the preview image on which a selection operation isacted is detected, and the shot object is determined as the targetobject.

FIG. 3 is a second schematic diagram of a display interface according toan example of the present disclosure. As shown in FIG. 3, the previewimage includes a first shot object 201 and a second shot object 201. Inthe implementation of the example, a selection operation for each shotobject may be detected, and a shot object on which the selectionoperation is acted is determined as the target object. For example, ifthe selection operation acted on the first shot object is detected, thefirst shot object may be determined as the target object. Herein, theselection operation may be a click operation, a long press operation, orthe like, and the click operation may be a double-click operation.

Taking the selection operation being a long press operation as anexample, after the long press operation acted on the first shot objectis detected, the first shot object may be determined as the targetobject. In the implementation of the example, the display position ofthe target object may be adjusted according to the user input acted onthe target object, so as to adjust the shooting angle of the cameraaccording to the adjustment of the display position. For example, if aslide operation on the target object is detected, a deflection directionand a deflection angle of the shooting angle of the camera can bedetermined based on a sliding direction and a sliding trajectory of theslide operation, and the shooting angle of the camera is thus adjustedbased on the deflection direction and the deflection angle.

In some examples, shooting angle of the camera may be adjusted bycontrolling the rotation of the camera. For example, the camera may bemounted on a pan-tilt-zoom structure (which is provided on theelectronic device), the rotation of the pan-tilt-zoom structure iscontrolled to drive the rotation of the camera. In other examples, whenthe camera assembly includes a light deflection component, the shootingangle of the camera may also be adjusted by controlling the rotation ofthe light deflection component. Herein, the light deflection componentmay include a prism, such as a triangular prism.

In the example of the present disclosure, adjustment of the shootingangle of the camera can be realized based on the user input receivedfrom the target object selected from the preview image, the convenienceof the camera control can be improved, and the current position of eachshot object can be directly observed based on the preview image, therebybeing more intuitive.

In some examples, the user input may include a touch input. Theoperation of adjusting the shooting angle of the camera according to theadjustment of the display position in response to the user input mayinclude: the display position of the target object is adjusted accordingto a touch gesture of the touch input, the deflection direction and/orthe deflection angle of the shooting angle of the camera are determinedaccording to the adjustment of the display position, and the shootingangle of the camera is adjusted according to the deflection directionand/or the deflection angle.

Herein, the user input applied to the target object may be the touchinput. When the user input is the touch input, the deflection directionand/or the deflection angle of the shooting angle of the camera may bedetermined according to the touch gesture of the touch input, and theshooting angle of the camera may be adjusted according to the deflectiondirection and/or the deflection angle. For example, if the touch gestureof the touch input is a gesture for rotating the target object, thedeflection direction of the shooting angle of the camera can bedetermined according to the rotation direction of the target object, andthe shooting angle of the camera can be adjusted according to thedeflection direction.

In the example of the present disclosure, the deflection directionand/or the deflection angle of the shooting angle of the camera can bedetermined according to the touch gesture of the touch input, so thatthe user can adjust the target object to the desired position and/or thedesired angle according to his/her own requirements.

In some examples, the operation of receiving the user input acting onthe preview image may include: a click input at the second position inthe preview image is received. The operation of adjusting shooting angleof the camera according to the adjustment of the display position mayinclude: a first deflection direction and a first deflection angle ofthe shooting angle of the camera are determined according to a relativeposition between the first position and the second position, and theshooting angle of the camera is adjusted according to the firstdeflection direction and the first deflection angle.

Herein, the second position is different from the first position. In theexample of the disclosure, when the click input at the second positionin the preview image is detected, the relative position between thefirst position and the second position may be determined to determinethe first deflection direction and the first deflection angle of theshooting angle of the camera, and the shooting angle of the camera isadjusted according to the first deflection direction and the firstdeflection angle. In some examples, the relative position includes arelative distance and a relative direction. The relative distance may bea distance between the first position and the second position in thepreview image, and the relative direction may be a linear direction fromthe first position to the second position. The click input may include adouble-click input, a single-click input, or a long press input.

In the example of the present disclosure, the shooting angle of thecamera can be adjusted based on the click input and the relativeposition between the first position and the second position, so that theconvenience of adjusting the camera can be improved.

In some examples, the operation of receiving the user input acting onthe preview image may include: a movement input that moves the targetobject from the first position to the second position is received. Theoperation of adjusting the shooting angle of the camera according to theadjustment of the display position may include: a second deflectiondirection of the shooting angle of the camera is determined according tothe movement direction of the movement input, a second deflection angleof the shooting angle of the camera is determined according to a movingtrajectory of the movement input, and the shooting angle of the camerais adjusted according to the second deflection direction and the seconddeflection angle.

Taking the user input being the movement input as an example, when themovement input is detected, it is represented that the user needs tomove the position of the target object in the preview image. Forexample, the target object may be moved to the right side of the previewimage, or the target object may be moved to the left side of the previewimage, or the like.

In the example of the present disclosure, the movement input for thetarget object can be detected. When the movement input is detected, thesecond deflection direction of the shooting angle of the camera can bedetermined according to the movement direction of the movement input,the second deflection angle of the shooting angle of the camera can bedetermined according to the moving trajectory of the movement input, andthe shooting angle of the camera can be adjusted according to the seconddeflection direction and the second deflection angle. In the example ofthe disclosure, the shooting angle of the camera can be adjusted basedon the movement direction and the moving trajectory of the movementinput, and the shooting angle of the camera can be adjusted in real timewhen the moving trajectory changes. Therefore, the convenience ofadjusting the shooting angle of the camera is improved.

In some examples, the operation of receiving the user input acting onthe preview image may include: a press input acting on the target objectis received. The operation of adjusting the shooting angle of the cameraaccording to the adjustment of the display position may include: anadjustment distance of the display position of the target object isdetermined based on preset correspondences between press force valuesand moving distances and a press force value of the press input, a thirddeflection angle of the shooting angle of the camera is determinedaccording to the adjustment distance, a third deflection direction ofthe shooting angle of the camera is determined according to a pressdirection of the press input, and the shooting angle of the camera isadjusted according to the third deflection direction and the thirddeflection angle.

Herein, when the press input acting on the target object is detected,the press force value of the press input and the press direction of thepress input can be determined. In this way, the adjustment distance ofthe display position of the target object can be determined based on thepreset correspondences between the press force values and the movingdistances and the determined press force value, the third deflectionangle of the shooting angle of the camera can be determined according tothe adjustment distance, the third deflection direction of the shootingangle of the camera can be determined according to the press directionof the press input, and the shooting angle of the camera can be adjustedaccording to the third deflection direction and the third deflectionangle. In the example of the disclosure, the shooting angle of thecamera can be adjusted based on the press input and the press directionand the press force value of the press input, so that the convenience ofadjusting the shooting angle of the camera can be improved.

In some examples, before receiving the user input acting on the previewimage, the method may further include: a movable range of the targetobject is displayed, herein the movable range is determined according toa deflection range of the shooting angle of the camera.

In some examples, the movable range of the target object may bedisplayed when the selection operation for the target object isdetected. FIG. 4 is a third schematic diagram of a display interfaceaccording to an example of the present disclosure. As shown in FIG. 4,the preview image includes the first shot object 201 and the second shotobject 202. In the implementation process, the selection operation foreach shot object may be detected, and the shot object on which theselection operation is acted is determined as a target object. After thetarget object is determined, the movable range of the target object maybe displayed on the display interface. For example, if a selectionoperation applied to the first shot object is detected, the first shotobject may be determined as the target object.

In the example of the present disclosure, a movable range 401 of thetarget object may be displayed after the target object is determined.Since the movable range 401 is determined according to the deflectionrange of the shooting angle of the camera, the user can rationallyadjust the display position of the target object according to themovable range and thus adjust the shooting angle of the camera.Therefore, it is possible to reduce the possibility of affecting theimage display effect due to the limitation from the limit value of theshooting angle of the camera.

In the implementation process, the target object to be moved in thepreview image may be selected based on the selection operation, and whenthe long press operation applied to the target object is detected, themovable range is displayed in the preview image, so that the user candirectly drag the target object within the movable range and move thetarget object to a designated position of the preview image by adjustingthe shooting angle of the camera. In other examples, after the targetobject is determined, the target position of the target object may alsobe determined based on the detected click operation, and the targetobject may be moved to the target position by adjustment of the shootingangle of the camera.

In some examples, the electronic device further includes a pan-tilt-zoomstructure connected to the camera. The operation of adjusting theshooting angle of the camera according to the adjustment of the displayposition may include: the pan-tilt-zoom structure is controlled to drivethe camera to rotate according to the adjustment of the displayposition, so as to adjust the shooting angle of the camera.

Herein, the pan-tilt-zoom structure may be provided inside theelectronic device and may have one or two planes of rotation. Forexample, the pan-tilt-zoom structure has two planes of rotation, whichmay be perpendicular to each other.

The rotation angle of the pan-tilt-zoom structure in each plane ofrotation may be equal to or less than 360 degrees.

In some examples, the angle of rotation of the pan-tilt-zoom structuremay be set as desired. For example, the angle may be equal to 360degrees, or 180 degrees, 90 degrees, or the like. For another example,the pan-tilt-zoom structure may be a panoramic pan-tilt-zoom. In otherexamples, the rotation angle of the pan-tilt-zoom structure may be lessthan a set angle. For example, the rotation angle of the pan-tilt-zoomstructure may be less than 180 degrees. In the example of thedisclosure, the rotation angle of the pan-tilt-zoom structure is set tobe smaller than the set angle, so that an internal space of theelectronic device can be saved compared with a case of the panoramicpan-tilt-zoom structure.

In other examples, a pan-tilt-zoom adjustment control may also beprovided on the preview image. The pan-tilt-zoom adjustment controlincludes an icon that is displayed overlaying the preview image and isdifferent from an object shot in the preview image.

For example, the pan-tilt-zoom adjustment control may be configured inthe upper left corner of the preview image, or the pan-tilt-zoomadjustment control or the like may be configured in the upper rightcorner of the preview image. In other examples, multiple pan-tilt-zoomadjustment controls independent from the preview image may also beconfigured on the preview image, and the rotation of the pan-tilt-zoomis controlled based on the plurality of pan-tilt-zoom adjustmentcontrols. For example, in case of multiple pan-tilt-zoom adjustmentcontrols, the pan-tilt-zoom structure may be controlled to rotate in anXOY plane of the Cartesian coordinate based on a first pan-tilt-zoomadjustment control, the pan-tilt-zoom structure may be controlled torotate in the YOZ plane based on a second pan-tilt-zoom adjustmentcontrol, and the pan-tilt-zoom structure may be controlled to rotate inthe XOZ plane based on a third pan-tilt-zoom adjustment control.

After the pan-tilt-zoom adjustment control is configured, it may bedetected whether there is an input operation acting on the pan-tilt-zoomadjustment control, and when a user input acting on the pan-tilt-zoomadjustment control is detected, the pan-tilt-zoom structure may becontrolled, based on the user input, to rotate, so as to adjust theshooting angle of the camera. For example, the rotation parameter of thepan-tilt-zoom structure may be determined based on the movementparameter input by the user, and the pan-tilt-zoom structure iscontrolled to rotate according to the rotation parameter. The movementparameter may include direction information and displacement informationinput by the user, and the rotation parameter may include a rotationdirection and a rotation angle of the pan-tilt-zoom structure, or thelike. The user input may be a slide operation, a rotating operation, orthe like.

In the example of the present disclosure, the pan-tilt-zoom structurecan be rotated during the preview of the image, so that the acquisitionangle of the camera is adjusted, and the preview image acquired by thecamera after the acquisition angle is adjusted is displayed on thedisplay screen of the electronic device, so that the user can determinean effect of the adjustment in time.

In the example of the present disclosure, the pan-tilt-zoom structure isprovided inside the electronic device and a camera is mounted on thepan-tilt-zoom structure, then the pan-tilt-zoom adjustment control canbe configured on a preview image during use of the electronic device,and rotation of the pan-tilt-zoom structure can be controlled based on adetected user input acting on the pan-tilt-zoom adjustment control. Inthis way, it is possible to directly control the rotation of thepan-tilt-zoom structure based on the pan-tilt-zoom adjustment controlprovided on the preview image, thereby adjusting the shooting angle ofthe camera. Since the position of each shot object in the preview imagecan be observed during the adjustment process, the operation is simpleand intuitive, thus the user's experience of using the electronic devicecan be improved.

In some examples, when the user input is a movement input, it is alsopossible to determine the rotation direction of the pan-tilt-zoomstructure according to a movement direction of the movement input, anddetermine the rotation angle of the pan-tilt-zoom structure according toa movement trajectory of the movement input. The operation ofdetermining the rotation direction of the pan-tilt-zoom structureaccording to the movement direction of the movement input includes: thepan-tilt-zoom structure is controlled to rotate in a first plane if themovement direction of the movement input is a first movement direction,the pan-tilt-zoom structure is controlled to rotate in a second plane ifthe movement direction of the movement input is a second movementdirection, herein the first movement direction and the second movementdirection are perpendicular to each other, and the first plane and thesecond plane are perpendicular to each other. For example, if the firstmovement direction is a direction along the X axis (which faces left orright) in Cartesian coordinates, the first plane may be an XOY plane,and if the second movement direction is a direction along the Y axis(which faces upwards or downwards), the second plane may be a YOZ plane.

In the example of the present invention, the rotation direction of thepan-tilt-zoom structure can be determined according to the movementdirection of the movement input, and the rotation angle of thepan-tilt-zoom structure can be determined according to the movementtrajectory of the touch operation. In this way, the rotation directionand the rotation angle of the pan-tilt-zoom structure can be made tocorrespond to the movement input by the user, and the target object canbe more accurately moved to a position desired by the user, thus theuser's experience of using the electronic device can be improved.

FIG. 5 is a fourth schematic diagram of a display interface according toan example of the present disclosure. As shown in FIG. 5, the previewimage includes a first shot object 201 and a second shot object 202, anda target position (a second position) 51 of the target object may bedetermined within a movable range by a click operation. For example, thetarget position of the target object is determined by a double-clickoperation. FIG. 6 is a fifth schematic diagram of a display interfaceaccording to an example of the present disclosure, and FIG. 7 is a sixthschematic diagram of a display interface according to an example of thepresent disclosure. As shown in FIG. 6 and FIG. 7, FIG. 6 shows apreview image before rotation of the pan-tilt-zoom structure, FIG. 7shows a preview image after rotation of the pan-tilt-zoom structure, andboth the first shot object 201 and the second shot object 202 in FIG. 7are moved with respect to the first shot object 201 and the second shotobject 202 in FIG. 6.

FIG. 8 is a block diagram of a control apparatus according to an exampleof the present disclosure. As shown in FIG. 8, a control apparatus 800is applied to an electronic device having a camera, and the apparatus800 may include a displaying module 801, a receiving module 802, and anadjusting module 803.

The displaying module 801 is configured to display a preview image.

The receiving module 802 is configured to receive a user input acting onthe preview image. The user input is used for adjustment of a displayposition of a target object in the preview image from a first positionto a second position.

The adjusting module 803 is configured to: in response to the userinput, adjust a shooting angle of the camera according to the adjustmentof the display position.

In some examples, the receiving module 802 may further be configured to:

receive a click input at the second position in the preview image;

the adjusting module 803 may be further configured to:

determine a first deflection direction and a first deflection angle ofthe shooting angle of the camera according to a relative positionbetween the first position and the second position;

adjust the shooting angle of the camera according to the firstdeflection direction and the first deflection angle.

In some examples, the receiving module 802 may also be configured to:

receive a movement input that moves the target object from the firstposition to the second position;

the adjusting module 803 may be further configured to:

determine a second deflection direction of the shooting angle of thecamera according to the movement direction of the movement input;

determine a second deflection angle of the shooting angle of the cameraaccording to the moving trajectory of the movement input;

adjust the shooting angle of the camera according to the seconddeflection direction and the second deflection angle.

In some examples, the receiving module 802 may also be configured to:

receive a press input acting on the target object;

the adjusting module 803 may be further configured to:

determine an adjustment distance of the display position of the targetobject based on preset correspondences between press force values andmoving distance and a press force value of the press input;

determine a third deflection angle of the shooting angle of the cameraaccording to the adjustment distance;

determine a third deflection direction of the shooting angle of thecamera according to the press direction of the press input;

adjust the shooting angle of the camera according to the thirddeflection direction and the third deflection angle.

In some examples, the receiving module 802 may also be configured to:

display a movable range of the target object;

the movable range is determined according to a deflection range of theshooting angle of the camera.

In some examples, the electronic device further includes a pan-tilt-zoomstructure connected to the camera.

The adjusting module 803 may be further configured to:

control, according to the adjustment of the display position, thepan-tilt-zoom structure to drive the camera to rotate, so as to adjustthe shooting angle of the camera.

With respect to the apparatus in the above described examples, thespecific manner in which the various modules perform operations has beendescribed in detail in the examples relating to the method, and will notbe described in detail herein.

FIG. 9 is a hardware block diagram of a control apparatus according toan example of the present disclosure. For example, an apparatus 500 maybe a mobile phone, a computer, a digital broadcast terminal, a messagingdevice, a game console, a tablet device, a medical device, an exercisedevice, a personal digital assistant, or the like.

Referring to FIG. 9, the apparatus 500 may include one or more of thefollowing components: a processing component 502, a memory 504, a powercomponent 506, a multimedia component 508, an audio component 510, aninput/output (I/O) interface 512, a sensor component 514, and acommunication component 516.

The processing component 502 generally controls the overall operation ofthe apparatus 500, such as operations associated with displays,telephone calls, data communications, camera operations, and recordingoperations. The processing component 502 may include one or moreprocessors 520 for executing instructions to perform all or a portion ofthe operations of the methods described above. In addition, theprocessing component 502 may include one or more modules whichfacilitate interaction between the processing component 502 and othercomponents. For example, the processing component 502 may include amultimedia module which facilitates interaction between the multimediacomponent 508 and the processing component 502.

The memory 504 is configured to store various types of data to supportoperation at the apparatus 500. Examples of such data includeinstructions for any application or method operating on the apparatus500, contact data, phone book data, messages, images, video, etc. Thememory 504 may be implemented by any type of volatile or non-volatilestorage device or combination thereof, such as Static Random AccessMemory (SRAM), an Electrically Erasable Programmable Read-Only Memory(EEPROM), an Erasable Programmable Read-Only Memory (EPROM), aProgrammable Read-only Memory (PROM), a Read-Only Memory (ROM), amagnetic memory, a flash memory, and a magnetic disk, or optical disk.

The power supply component 506 provides power to various components ofthe apparatus 500. The power component 506 may include a powermanagement system, one or more power supplies, and other componentsassociated with generating, managing, and distributing power for theapparatus 500.

The multimedia component 508 includes a screen providing an outputinterface provides between the apparatus 500 and the user. In someexamples, the screen may include an Liquid Crystal Display (LCD) and aTouch Panel (TP). If the screen includes a TP, the screen may beimplemented as a touch screen to receive input signals from a user. TheTP includes one or more touch sensors for sensing touches, swipes andgestures on the TP. The touch sensor may not only sense the boundary ofa touch or sliding action, but also detect the duration and pressureassociated with the touch or slide operation. In some examples, themultimedia component 508 includes a front-facing camera and/or arear-facing camera. The front-facing camera and/or the rear-facingcamera may receive external multimedia data when the apparatus 500 is inan operation mode, such as a photographing mode or a video mode. Each ofthe front and rear cameras may be a fixed optical lens system or have afocal length and optical zooming capability.

The audio component 510 is configured to output and/or input audiosignals. For example, the audio component 510 includes a Microphone(MIC) that is configured to receive external audio signals when theapparatus 500 is in an operating mode, such as a call mode, a recordingmode, and a speech recognition mode. The received audio signal may befurther stored in the memory 504 or transmitted via the communicationcomponent 516. In some examples, the audio component 510 furtherincludes a speaker for outputting an audio signal.

The I/O interface 512 provides an interface between the processingcomponent 502 and a peripheral interface module. The peripheralinterface module may be a keyboard, a click wheel, a button, or thelike. These buttons may include, but are not limited to, a home pagebutton, a volume button, a starting button, and a locking button.

The sensor assembly 514 includes one or more sensors for providing astate assessment of various aspects of the apparatus 500. For example,the sensor assembly 514 may detect an on/off state of the apparatus 500and a relative positioning of the assembly, such as a display and keypadof the device 500, the sensor assembly 514 may also detect a change inposition of the apparatus 500 or one of the components of the apparatus500, the presence or absence of user contact with the device 500, anorientation or acceleration/deceleration of the apparatus 500, and achange in temperature of the apparatus 500. The sensor assembly 514 mayinclude a proximity sensor configured to detect the presence of a nearbyobject in the absence of any physical contact. The sensor assembly 514may also include a light sensor, such as a Complementary Metal OxideSemiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, foruse in imaging applications. In some examples, the sensor assembly 514may also include an acceleration sensor, a gyroscope sensor, a magneticsensor, a pressure sensor, or a temperature sensor.

The communication component 516 is configured to facilitate wired orwireless communication between apparatus 500 and other devices. Theapparatus 500 may access a wireless network based on a communicationstandard, such as a Wireless Fidelity (WI-FI) network, a 2nd-Generation(2G) or 6rd-Generation (6G) network or a combination thereof. In oneexample, communication component 516 receives broadcast signals orbroadcast-related information from an external broadcast managementsystem via a broadcast channel. In one example, the communicationcomponent 516 further includes a Near Field Communication (NFC) moduleto facilitate short-range communication. For example, the NFC module maybe implemented based on a Radio Frequency Identification (RFID)technology, an Infrared Data Association (IrDA) technology, an UltraWideband (UWB) technology, a Bluetooth (BT) technology, and othertechnologies.

In an example, the apparatus 500 may be implemented by one or moreApplication Specific Integrated Circuits (ASICs), Digital SignalProcessors (DSPs), Digital Signal Processing Devices (DSPD),Programmable Logic Devices (PLDs), Field Programmable Gate Arrays(FPGAs), controllers, microcontrollers, microprocessors, or otherelectronic components for performing the methods described above.

In an example of the present disclosure, there is also provided anon-transitory computer-readable storage medium including instructions,such as the memory 504 including instructions executable by theprocessor 520 of the apparatus 500 to perform the above-describedmethods, is also provided. For example, the non-transitorycomputer-readable storage medium may be a ROM, a random access memory(RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, afloppy disk, an optical data storage device, or the like.

A non-transitory computer-readable storage medium that, wheninstructions in the storage medium are executed by a processor of anelectronic device, enables the electronic device to perform a controlmethod applied to the electronic device having a camera, the methodincludes the following operations.

A preview image is displaying.

A user input acting on the preview image is received, in which the userinput is used for adjustment of a display position of a target object inthe preview image from a first position to a second position.

A shooting angle of the camera according to the adjustment of thedisplay position is adjusted in response to the user input.

Other examples of the present disclosure will be apparent to thoseskilled in the art from consideration of the specification and practiceof the present disclosed. This disclosure is intended to cover anyvariations, uses, or adaptations of the disclosure such departures fromthe present disclosure as come within known or customary practice in theart. It is intended that the specification and examples be considered asexemplary only, with a true scope and spirit of the present disclosurebeing indicated by the following claims.

It will be appreciated that that the present disclosure is not limitedto the exact construction that has been described above and illustratedin the accompanying drawings, and that various modifications and changesmay be made without departing from the scope thereof. It is intendedthat the scope of the present disclosure only by the appended claims.

1. A control method, comprising: displaying a preview image captured bya camera of an electronic device; displaying a movable range of a targetobject within the preview image in response to detecting a selectionoperation for the target object, wherein the movable range is determinedaccording to a deflection range of a shooting angle of the camera;receiving, by the electronic device, a user input acting on the previewimage, wherein the user input comprises an adjustment of a displayposition of the target object in the preview image from a first positionto a second position; and in response to the user input, adjusting, bythe electronic device, the shooting angle of the camera according to theadjustment of the display position.
 2. The method of claim 1, whereinreceiving the user input acting on the preview image comprises:receiving a single-click input at the second position in the previewimage; and wherein adjusting the shooting angle of the camera accordingto the adjustment of the display position comprises: determining adeflection direction and a deflection angle of the shooting angle of thecamera according to a relative position between the first position andthe second position; and adjusting the shooting angle of the cameraaccording to the deflection direction and the deflection angle.
 3. Themethod of claim 1, wherein receiving the user input acting on thepreview image comprises: receiving a movement input that moves thetarget object from the first position to the second position; andwherein adjusting the shooting angle of the camera according to theadjustment of the display position comprises: determining a deflectiondirection of the shooting angle of the camera according to the movementdirection of the movement input; determining a deflection angle of theshooting angle of the camera according to the moving trajectory of themovement input; and adjusting the shooting angle of the camera accordingto the deflection direction and the second deflection angle.
 4. Themethod of claim 1, wherein receiving the user input acting on thepreview image comprises: receiving a press input acting on the targetobject; and wherein adjusting the shooting angle of the camera accordingto the adjustment of the display position comprises: determining anadjustment distance of the display position of the target object basedon preset correspondences between press force values and movingdistances, and a press force value of the press input; determining adeflection angle of the shooting angle of the camera according to theadjustment distance; determining a deflection direction of the shootingangle of the camera according to the press direction of the press input;and adjusting the shooting angle of the camera according to thedeflection direction and the deflection angle.
 5. (canceled)
 6. Themethod of claim 1, wherein the electronic device further comprises apan-tilt-zoom structure connected to the camera; and wherein adjustingthe shooting angle of the camera according to the adjustment of thedisplay position comprises: controlling, according to the adjustment ofthe display position, the pan-tilt-zoom structure to drive the camera torotate and adjust the shooting angle of the camera.
 7. The method ofclaim 6, further comprising: providing a pan-tilt-zoom adjustmentcontrol on the preview image; and receiving a user input acting on thepan-tilt-zoom adjustment control.
 8. A control apparatus, comprising: adisplay screen; a processor; and a memory for storing instructionsexecutable by the processor, wherein the display screen is configured todisplay a preview image captured by a camera of an electronic device;and display a movable range of a target object within the preview imagein response to detecting a selection operation for the target object,wherein the movable range is determined according to a deflection rangeof a shooting angle of the camera; wherein the processor is configuredto: receive a user input acting on the preview image, wherein the userinput comprises an adjustment of a display position of the target objectin the preview image from a first position to a second position; and inresponse to the user input, adjust the shooting angle of the cameraaccording to the adjustment of the display position.
 9. The apparatus ofclaim 8, wherein the processor is further configured to: receive asingle-click input at the second position in the preview image; andwherein to adjust the shooting angle of the camera according to theadjustment of the display position, the processor is further configuredto: determine a deflection direction and a deflection angle of theshooting angle of the camera according to a relative position betweenthe first position and the second position; and adjust the shootingangle of the camera according to the deflection direction and thedeflection angle.
 10. The apparatus of claim 8, wherein the processor isfurther configured to: receive a movement input that moves the targetobject from the first position to the second position; and wherein toadjust the shooting angle of the camera according to the adjustment ofthe display position, the processor is further configured to: determinea deflection direction of the shooting angle of the camera according tothe movement direction of the movement input; determine a deflectionangle of the shooting angle of the camera according to the movingtrajectory of the movement input; and adjust the shooting angle of thecamera according to the deflection direction and the deflection angle.11. The apparatus of claim 8, wherein the processor is furtherconfigured to: receive a press input acting on the target object; andwherein to adjust the shooting angle of the camera according to theadjustment of the display position, the processor is further configuredto: determine an adjustment distance of the display position of thetarget object based on preset correspondences between press force valuesand moving distances and a press force value of the press input;determine a deflection angle of the shooting angle of the cameraaccording to the adjustment distance; determine a deflection directionof the shooting angle of the camera according to the press direction ofthe press input; and adjust the shooting angle of the camera accordingto the deflection direction and the deflection angle.
 12. (canceled) 13.The apparatus of claim 8, wherein the electronic device furthercomprises a pan-tilt-zoom structure connected to the camera; and whereinto adjust the shooting angle of the camera according to the adjustmentof the display position, the processor is further configured to:control, according to the adjustment of the display position, thepan-tilt-zoom structure to drive the camera to rotate and adjust theshooting angle of the camera.
 14. The apparatus of claim 13, wherein theprocessor is further configured to: provide a pan-tilt-zoom adjustmentcontrol on the preview image; and receive a user input acting on thepan-tilt-zoom adjustment control.
 15. A non-transitory computer-readablestorage medium having stored thereon instruction that, when executed bya processor of an electronic device, cause the electronic device toperform operations of a control method, the control method comprising:displaying a preview image captured by a camera of the electronicdevice; displaying a movable range of a target object within the previewimage in response to detecting a selection operation for the targetobject, wherein the movable range is determined according to adeflection range of a shooting angle of the camera; receiving a userinput acting on the preview image, wherein the user input comprises anadjustment of a display position of the target object in the previewimage from a first position to a second position; and in response to theuser input, adjusting the shooting angle of the camera according to theadjustment of the display position.
 16. The non-transitorycomputer-readable storage medium of claim 15, wherein receiving the userinput acting on the preview image comprises: receiving a single-clickinput at the second position in the preview image; and wherein adjustingthe shooting angle of the camera according to the adjustment of thedisplay position comprises: determining a deflection direction and adeflection angle of the shooting angle of the camera according to arelative position between the first position and the second position;and adjusting the shooting angle of the camera according to thedeflection direction and the deflection angle.
 17. The non-transitorycomputer-readable storage medium of claim 15, wherein receiving the userinput acting on the preview image comprises: receiving a movement inputthat moves the target object from the first position to the secondposition; and wherein adjusting the shooting angle of the cameraaccording to the adjustment of the display position comprises:determining a deflection direction of the shooting angle of the cameraaccording to the movement direction of the movement input; determining adeflection angle of the shooting angle of the camera according to themoving trajectory of the movement input; and adjusting the shootingangle of the camera according to the deflection direction and thedeflection angle.
 18. The non-transitory computer-readable storagemedium of claim 15, wherein receiving the user input acting on thepreview image comprises: receiving a press input acting on the targetobject; and wherein adjusting the shooting angle of the camera accordingto the adjustment of the display position comprises: determining anadjustment distance of the display position of the target object basedon preset correspondences between press force values and movingdistances and a press force value of the press input; determining adeflection angle of the shooting angle of the camera according to theadjustment distance; determining a deflection direction of the shootingangle of the camera according to the press direction of the press input;and adjusting the shooting angle of the camera according to thedeflection direction and the deflection angle.
 19. (canceled)
 20. Thenon-transitory computer-readable storage medium of claim 15, wherein theelectronic device further comprises a pan-tilt-zoom structure connectedto the camera; and wherein adjusting the shooting angle of the cameraaccording to the adjustment of the display position comprises:controlling, according to the adjustment of the display position, thepan-tilt-zoom structure to drive the camera to rotate and adjust theshooting angle of the camera.